package com.huluobo.a2204kotlinshopping.detail

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.huluobo.a2204kotlinshopping.R
import com.hyphenate.easeui.modules.chat.EaseChatFragment


class ServiceActivity : AppCompatActivity() {
    private var chatFragment: EaseChatFragment? = null

    override fun onCreate(arg0: Bundle?) {
        super.onCreate(arg0)
        setContentView(R.layout.activity_service)
        //use EaseChatFratFragment
        chatFragment = EaseChatFragment()
        //pass parameters to chat fragment
        chatFragment!!.arguments = intent.extras
        supportFragmentManager.beginTransaction().add(R.id.container, chatFragment!!).commit()
    }
}